<?php

namespace app\adminapi\validate;

use app\common\validate\BaseValidate;

class SystemMenuValidate extends BaseValidate
{
    protected $rule = [
        'menuId' => 'require',
        'menuName' => 'require'
    ];

    protected $message = [
        'menuId.require' => '菜单ID不能为空',
        'menuName.require' => '请输入菜单名称'
    ];

    protected $scene = [
        'insert' => ['menuName'],
        'delete' => ['menuId'],
        'query' => ['menuId'],
        'update' => ['menuId', 'menuName']
    ];
}